package com.lingkang.xcoa.service.impl;

import com.lingkang.xcoa.data.dao.OaRoleMapper;
import com.lingkang.xcoa.data.dao.OaUserMapper;
import com.lingkang.xcoa.data.entity.OaUser;
import com.lingkang.xcoa.service.UserService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author linke
 * @date 2020/8/19 22:50
 * @description
 */
@Service
public class UserServiceImpl implements UserService {

  @Autowired
  private OaUserMapper oaUserMapper;
  @Autowired
  private OaRoleMapper oaRoleMapper;

  @Override
  public OaUser getUserInfo(String username) {
    return oaUserMapper.getUserInfo(username);
  }


  @Override
  public List<String> getRoleByUsername(String username) {
    return oaRoleMapper.getRoleByUsername(username);
  }
}
